<?php
if (!defined('admin')) {
    exit();
}
if (power('alevel') != 3) {
    die('error');
}
checktoken();
$id = intval($_GET['id']);
$query = M()->query("delete from `" . tableex('moudle') . "` WHERE id='$id'");
if ($query) {
    if (!isset($_SERVER["HTTP_REFERER"])) {
        $_SERVER["HTTP_REFERER"] = '';
    }
    adminmsg($_SERVER["HTTP_REFERER"], '删除成功', 1);
} else {
    adminmsg('', '删除失败', 3);
}
